<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- QCtmClassifyTreeGroupItem.qdoc -->
  <meta name="description" content="用在分类视图 QCtmClassifyTreeView 里的item.">
  <title>QCtmClassifyTreeGroupItem Class | QCustomUi 1.16.0</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li><a href="index.html" translate="no">QCustomUi 1.16.0</a></li>
<li><a href="qcustomui-module.html" translate="no">QCustomUi</a></li>
<li>QCtmClassifyTreeGroupItem</li>
<li id="buildversion">QCustomUi 1.16.0 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3 id="toc">Contents</h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#reimplemented-public-functions">Reimplemented Public Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title" translate="no">QCtmClassifyTreeGroupItem Class</h1>
<!-- $$$QCtmClassifyTreeGroupItem-brief -->
<p>用在分类视图 <a href="qctmclassifytreeview.html" translate="no">QCtmClassifyTreeView</a> 里的item. <a href="#details">More...</a></p>
<!-- @@@QCtmClassifyTreeGroupItem -->
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">  <span class="preprocessor">#include &lt;QCtmClassifyTreeGroupItem.h&gt;</span></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qctmclassifytreeiconitem.html" translate="no">QCtmClassifyTreeIconItem</a></td></tr>
</table></div>
<ul>
<li><a href="qctmclassifytreegroupitem-members.html">List of all members, including inherited members</a></li>
</ul>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreegroupitem.html#QCtmClassifyTreeGroupItem" translate="no">QCtmClassifyTreeGroupItem</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreegroupitem.html#QCtmClassifyTreeGroupItem-1" translate="no">QCtmClassifyTreeGroupItem</a></b>(const QString &amp;<i>text</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreegroupitem.html#QCtmClassifyTreeGroupItem-2" translate="no">QCtmClassifyTreeGroupItem</a></b>(const QIcon &amp;<i>icon</i>, const QString &amp;<i>text</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreegroupitem.html#dtor.QCtmClassifyTreeGroupItem" translate="no">~QCtmClassifyTreeGroupItem</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreegroupitem.html#addChild" translate="no">addChild</a></b>(QCtmClassifyTreeItem *<i>item</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QCtmClassifyTreeItem *</td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreegroupitem.html#child" translate="no">child</a></b>(int <i>row</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreegroupitem.html#clear" translate="no">clear</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreegroupitem.html#count" translate="no">count</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreegroupitem.html#insertChild" translate="no">insertChild</a></b>(int <i>row</i>, QCtmClassifyTreeItem *<i>item</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreegroupitem.html#removeChild" translate="no">removeChild</a></b>(QCtmClassifyTreeItem *<i>item</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreegroupitem.html#rowOf" translate="no">rowOf</a></b>(const QCtmClassifyTreeItem *<i>item</i>) const</td></tr>
</table></div>
<h2 id="reimplemented-public-functions">Reimplemented Public Functions</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreegroupitem.html#itemType" translate="no">itemType</a></b>() const override</td></tr>
</table></div>
<!-- $$$QCtmClassifyTreeGroupItem-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
</div>
<!-- @@@QCtmClassifyTreeGroupItem -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QCtmClassifyTreeGroupItem[overload1]$$$QCtmClassifyTreeGroupItem -->
<h3 class="fn" translate="no" id="QCtmClassifyTreeGroupItem">QCtmClassifyTreeGroupItem::<span class="name">QCtmClassifyTreeGroupItem</span>()</h3>
<p>构造一个item.</p>
<!-- @@@QCtmClassifyTreeGroupItem -->
<!-- $$$QCtmClassifyTreeGroupItem$$$QCtmClassifyTreeGroupItemconstQString& -->
<h3 class="fn" translate="no" id="QCtmClassifyTreeGroupItem-1"><code class="details extra" translate="no">[explicit]</code> QCtmClassifyTreeGroupItem::<span class="name">QCtmClassifyTreeGroupItem</span>(const <span class="type"><a href="https://doc.qt.io/qt/qstring.html" translate="no">QString</a></span> &amp;<i>text</i>)</h3>
<p>根据 <i translate="no">text</i> 构造一个item.</p>
<!-- @@@QCtmClassifyTreeGroupItem -->
<!-- $$$QCtmClassifyTreeGroupItem$$$QCtmClassifyTreeGroupItemconstQIcon&constQString& -->
<h3 class="fn" translate="no" id="QCtmClassifyTreeGroupItem-2"><code class="details extra" translate="no">[explicit]</code> QCtmClassifyTreeGroupItem::<span class="name">QCtmClassifyTreeGroupItem</span>(const <span class="type"><a href="https://doc.qt.io/qt/qicon.html" translate="no">QIcon</a></span> &amp;<i>icon</i>, const <span class="type"><a href="https://doc.qt.io/qt/qstring.html" translate="no">QString</a></span> &amp;<i>text</i>)</h3>
<p>根据 <i translate="no">icon</i> 和 <i translate="no">text</i> 构造一个item.</p>
<!-- @@@QCtmClassifyTreeGroupItem -->
<!-- $$$~QCtmClassifyTreeGroupItem[overload1]$$$~QCtmClassifyTreeGroupItem -->
<h3 class="fn" translate="no" id="dtor.QCtmClassifyTreeGroupItem"><code class="details extra" translate="no">[virtual noexcept]</code> QCtmClassifyTreeGroupItem::<span class="name">~QCtmClassifyTreeGroupItem</span>()</h3>
<p>销毁该item对象.</p>
<!-- @@@~QCtmClassifyTreeGroupItem -->
<!-- $$$addChild[overload1]$$$addChildQCtmClassifyTreeItem* -->
<h3 class="fn" translate="no" id="addChild"><span class="type">void</span> QCtmClassifyTreeGroupItem::<span class="name">addChild</span>(<span class="type"><a href="qctmclassifytreeitem.html#QCtmClassifyTreeItem" translate="no">QCtmClassifyTreeItem</a></span> *<i>item</i>)</h3>
<p>添加一个子项 <i translate="no">item</i>.</p>
<p><b>See also </b><a href="qctmclassifytreegroupitem.html#insertChild" translate="no">insertChild</a> and <a href="qctmclassifytreegroupitem.html#removeChild" translate="no">removeChild</a>.</p>
<!-- @@@addChild -->
<!-- $$$child[overload1]$$$childint -->
<h3 class="fn" translate="no" id="child"><span class="type"><a href="qctmclassifytreeitem.html#QCtmClassifyTreeItem" translate="no">QCtmClassifyTreeItem</a></span> *QCtmClassifyTreeGroupItem::<span class="name">child</span>(<span class="type">int</span> <i>row</i>) const</h3>
<p>返回 <i translate="no">row</i> 位置的子项.</p>
<!-- @@@child -->
<!-- $$$clear[overload1]$$$clear -->
<h3 class="fn" translate="no" id="clear"><span class="type">void</span> QCtmClassifyTreeGroupItem::<span class="name">clear</span>()</h3>
<p>移除所有的子项.</p>
<!-- @@@clear -->
<!-- $$$count[overload1]$$$count -->
<h3 class="fn" translate="no" id="count"><span class="type">int</span> QCtmClassifyTreeGroupItem::<span class="name">count</span>() const</h3>
<p>返回子项的数量.</p>
<!-- @@@count -->
<!-- $$$insertChild[overload1]$$$insertChildintQCtmClassifyTreeItem* -->
<h3 class="fn" translate="no" id="insertChild"><span class="type">void</span> QCtmClassifyTreeGroupItem::<span class="name">insertChild</span>(<span class="type">int</span> <i>row</i>, <span class="type"><a href="qctmclassifytreeitem.html#QCtmClassifyTreeItem" translate="no">QCtmClassifyTreeItem</a></span> *<i>item</i>)</h3>
<p>在 <i translate="no">row</i> 的位置插入一个子项 <i translate="no">item</i>.</p>
<p><b>See also </b><a href="qctmclassifytreegroupitem.html#addChild" translate="no">addChild</a> and <a href="qctmclassifytreegroupitem.html#removeChild" translate="no">removeChild</a>.</p>
<!-- @@@insertChild -->
<!-- $$$itemType[overload1]$$$itemType -->
<h3 class="fn" translate="no" id="itemType"><code class="details extra" translate="no">[override virtual]</code> <span class="type">int</span> QCtmClassifyTreeGroupItem::<span class="name">itemType</span>() const</h3>
<p>Reimplements: <a href="qctmclassifytreeiconitem.html#itemType" translate="no">QCtmClassifyTreeIconItem::itemType() const</a>.</p>
<!-- @@@itemType -->
<!-- $$$removeChild[overload1]$$$removeChildQCtmClassifyTreeItem* -->
<h3 class="fn" translate="no" id="removeChild"><span class="type">void</span> QCtmClassifyTreeGroupItem::<span class="name">removeChild</span>(<span class="type"><a href="qctmclassifytreeitem.html#QCtmClassifyTreeItem" translate="no">QCtmClassifyTreeItem</a></span> *<i>item</i>)</h3>
<p>移除给予的子项 <i translate="no">item</i>.</p>
<p><b>See also </b><a href="qctmclassifytreegroupitem.html#addChild" translate="no">addChild</a> and removeChild.</p>
<!-- @@@removeChild -->
<!-- $$$rowOf[overload1]$$$rowOfconstQCtmClassifyTreeItem* -->
<h3 class="fn" translate="no" id="rowOf"><span class="type">int</span> QCtmClassifyTreeGroupItem::<span class="name">rowOf</span>(const <span class="type"><a href="qctmclassifytreeitem.html#QCtmClassifyTreeItem" translate="no">QCtmClassifyTreeItem</a></span> *<i>item</i>) const</h3>
<p>返回 <i translate="no">item</i> 所在的位置.</p>
<!-- @@@rowOf -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> QCustomUi
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/> </div>
</body>
</html>
